IF(PYTHONLIBS_FOUND)
IF(SIP_OK)
INCLUDE_DIRECTORIES(${TulipPythonInclude})
QTX_WRAP_CPP(FacebookImport_MOC_SRCS FacebookImport.h)
QTX_WRAP_UI(FacebookImport_UI_SRCS FacebookImport.ui)
QTX_ADD_RESOURCES(FacebookImport_RCC_SRCS FacebookImport.qrc)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY(FacebookImport SHARED FacebookImport.cpp ${FacebookImport_MOC_SRCS} ${FacebookImport_RCC_SRCS} ${FacebookImport_UI_SRCS})
TARGET_LINK_LIBRARIES(FacebookImport ${LibTulipCoreName} ${LibTulipPythonName} ${QT_LIBRARIES})

IF(WIN32)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/facebook.py DESTINATION ${TulipBinInstallDir}/python COMPONENT FacebookImport)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tulip_facebook.py DESTINATION ${TulipBinInstallDir}/python COMPONENT FacebookImport)
ELSE(WIN32)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/facebook.py DESTINATION ${TulipLibInstallDir}/python COMPONENT FacebookImport)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tulip_facebook.py DESTINATION ${TulipLibInstallDir}/python COMPONENT FacebookImport)
ENDIF()

INSTALL(TARGETS FacebookImport DESTINATION ${TulipPluginsInstallDir} COMPONENT FacebookImport)
ENDIF(SIP_OK)
ENDIF(PYTHONLIBS_FOUND)
